package com.jdjc.auth.domin.convert;

import com.jdjc.auth.domin.entity.AuthPermissionBO;
import com.jdjc.auth.domin.entity.AuthRoleBO;
import com.jdjc.auth.infra.basic.entity.AuthPermission;
import com.jdjc.auth.infra.basic.entity.AuthRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 该接口使用了 @Mapper 注解。这个接口与 MapStruct 库一起使用，该库是一个 Java 注解处理器库，用于自动生成 Java 对象之间的映射代码。
 */
@Mapper
public interface AuthPermissionDominConverter {
    AuthPermissionDominConverter INSTANCE= Mappers.getMapper(AuthPermissionDominConverter.class);


    AuthPermission convertBOToEntity(AuthPermissionBO authPermissionBO);
    AuthPermissionBO convertEntityToBO(AuthPermission authPermission);
    List<AuthPermissionBO> AuthPermissionListToBOList(List<AuthPermission> authPermissionList);

}
